# -*- coding: utf-8 -*-
'''
@Datetime: 2019/05/26
@author: Zhang Yafei
'''
from docx import Document
from docx.shared import Inches
import os


document = Document(docx='res/python3爬虫.docx')  #打开文件demo.docx
for paragraph in document.paragraphs:
    print(paragraph.text)  #打印各段落内容文本

# document.add_paragraph(
    # 'Add new paragraph', style='ListNumber'
# )    #添加新段落

# document.save('demo.docx') #保存文档